package com.nami.web.controller.msg;

import com.nami.web.dto.msg.MsgQryDTO;
import com.nami.web.facade.MsgFacadeService;
import com.nami.web.vo.msg.HisMsg;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.dromara.common.core.domain.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RequiredArgsConstructor
@RestController
@RequestMapping("/msg")
public class MessageController {

    private final MsgFacadeService msgFacadeService;

    @GetMapping("/qryHisMsgs")
    public R<HisMsg> getHisMsgs(MsgQryDTO dto) {
        return R.ok(msgFacadeService.qryHisMsgs(dto));
    }


}
